package com.nuonuo.refresh.service.impl;

import com.nuonuo.middleware.drs.spring.context.annotation.DrsBeanRefresh;
import com.nuonuo.refresh.service.TestInitializingBeanService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * @author duan
 * @version 1.0
 * @date 2023/2/2 10:42
 */
@Service
@DrsBeanRefresh
public class TestInitializingBeanServiceImpl implements TestInitializingBeanService, InitializingBean {

    @Override
    public String sayHello() {
        return "** hello, world **";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("****************** InitializingBean *****************");
    }
}
